package com.wbcs.config.template.tags;

import com.wbcs.system.ReportRequest;
import com.wbcs.system.assistant.TagAssistant;
import com.wbcs.system.component.AbsComponentType;
import com.wbcs.util.Consts_Private;

public class SDataImportTag extends AbsTagInTemplate
{

    public SDataImportTag(AbsTagInTemplate parentTag)
    {
        super(parentTag);
    }

    @Override
	public String getTagname()
    {
        return Consts_Private.TAGNAME_DATAIMPORT;
    }

    @Override
	public String getDisplayValue(ReportRequest rrequest,AbsComponentType ownerComponentObj)
    {
        String ref=null;
        String popupparams=null;
        String dataimportinitsize=null;
        if(this.mTagAttributes!=null)
        {
            ref=this.mTagAttributes.get("ref");
            popupparams=this.mTagAttributes.get("popupparams");
            dataimportinitsize=this.mTagAttributes.get("dataimportinitsize");
        }
        return TagAssistant.getInstance().getDataImportDisplayValue(ref,popupparams,dataimportinitsize,this.tagContent,rrequest.getRequest());
    }
}
